package dongshi.daddy.dao;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class UserDao {
    @Resource
    private JdbcTemplate jdbcTemplate;

    public void addUser() {
        String insertSql = "INSERT INTO `user`(id, `user_name`) VALUES (?, ?) ";
        jdbcTemplate.update(insertSql, new Object[]{ 999, "精确治理是个啥？" });
    }
}
